<div id="component-add-edit">
    <div class="title">
        修改组件信息
    </div>
    <form action="__APP__/Component/update" method="post">
        <input type="hidden" name="id" value="<{$data.id}>" />
        <input type="hidden" name="image" class="pic" value="<{$data.image}>" readonly="readonly" />
        <table>
            <tr><th>组件名称：</th><td><input type="text" name="name" value="<{$data.name}>" /></td></tr>
            <tr><th>组件别名：</th><td><input type="text" name="alias" value="<{$data.alias}>" /></td></tr>

            <!--<notdefined name="componentlist">-->
                <tr><th>使用模型：</th><td>
                    <select name="model" class="move" style="margin-bottom: 5px;">
                        <volist name="componentlist" id="vo">
                            <eq name="data.model" value="$vo">
                                <option value="<{$vo}>" selected="selected"><{$vo}></option>
                                <else/>
                                <option value="<{$vo}>"><{$vo}></option>
                            </eq>
                        </volist>
                    </select>
                </td>
                </tr>
            <!--</notdefined>-->

            <tr><th>使用操作：</th><td>
                <select name="action" class="move">
                    <volist name="actions" id="vo">
                        <eq name="data.action" value="$vo">
                            <option value="<{$vo}>" selected="selected"><{$vo}></option>
                            <else/>
                            <option value="<{$vo}>"><{$vo}></option>
                        </eq>
                    </volist>
                </select>
            </td></tr>


            <!--            <tr><th style="vertical-align:top;"><a href="javascript:;" class="upload">修改封面</a>：</th>
            <td class="img">
                <empty name="data.image">
                        <img  width="132" height="75" src="__PUBLIC__/Content/Component/default.jpg" />
                    <else/>
                        <img  width="132" height="75" alt="<{$data.name}>" src="__PUBLIC__/Content/Component/<{$data.image}>" />
                </empty>
            </td></tr>-->
            <tr><th>组件排序：</th><td><input type="text" name="sort" value="<{$data.sort}>" /></td></tr>
            <eq name="data.publish" value="1">
                    <tr><th>是否发布：</th><td><input type="radio" checked="checked" name="publish" value="1" />是
                    <input type="radio" name="publish" value="0" />否</td></tr>
                <else/>
                    <tr><th>是否发布：</th><td><input type="radio" name="publish" value="1" />是
                    <input type="radio" name="publish" value="0" checked="checked" />否</td></tr>
            </eq>
            <tr><th style="vertical-align:top;">组件描述：</th><td><textarea name="description"><{$data.description}></textarea></td></tr>
            <tr><td></td><td><input type="submit" class="submit" value="修改组件" /></td></tr>
        </table>
    </form>
</div>
<script type="text/javascript" src="../Public/js/component.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ajaxupload.js"></script>